//
//  MBThumbnailCache.h
//  Meboo
//
//  Created by kyo on 2023/11/15.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface MBThumbnailCache : NSObject
+ (instancetype)sharedCache;
//存储图片
- (void)setThumbnailImage:(UIImage *)image forKey:(NSString *)key;
//根据key值取图片
- (UIImage *)getThumbnailImageForKey:(NSString *)key;
//获取视频的缩略图(第一帧)
- (UIImage *)getThumbnailImage:(NSString *)videoUrl;
@end

NS_ASSUME_NONNULL_END
